package com.dong.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author xiaoDong
 * @version 1.0.0
 * @ClassName Student.java
 * @Description 学生对象
 * @createTime 2024年05月06日 11:08:00
 */
public class Student implements Serializable {
    private static final long serialVersionUID = 847248945730164528L;

    /* `id` int(5) NOT NULL AUTO_INCREMENT,
  `userName` varchar(50) COLLATE utf8mb4_bin NOT NULL,
  `imgPath` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '头像',
            `classId` int(5) NOT NULL COMMENT '班级Id',
            `sex` varchar(2) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '性别',
            `phone` varchar(13) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '手机号',
            `birthday` date DEFAULT NULL,
            `address` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '家庭住址',
            `state` varchar(2) COLLATE utf8mb4_bin DEFAULT '0' COMMENT '0:可用  1：删除',*/
    private int id;

    private String userName;

    private String imgPath;

    private int classId;

    private String className;

    private String sex;

    private String phone;

    private String birthday;

    private int age;

    private String address;

    private String state;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", imgPath='" + imgPath + '\'' +
                ", classId=" + classId +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", birthday=" + birthday +
                ", address='" + address + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
